package demo3;

interface IRunning {
    void run();
}

interface ISwimming {
    void swim();
}

// 两栖的动物, 既能跑, 也能游
interface IAmphibious extends IRunning, ISwimming {

}

class Frog implements IAmphibious {

    @Override
    public void run() {
        System.out.println("正在跑");
    }

    @Override
    public void swim() {
        System.out.println("正在游泳");
    }
}

public class TestDemo {

}
